﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptTimekeeperTableStyle2Theme1 : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRTableCell colD28;
        private XRTableCell colD29;
        private XRTableCell colD30;
        private XRTableCell colD31;
        private IContainer components;
        private DetailBand Detail;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private HRM_TIMEKEEPER_TABLE l_TimeKeeper;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Year;
        private XRPictureBox ptPhoto;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRTableCell txtAbsent;
        private XRLabel txtAddress;
        private XRLabel txtCompany;
        private XRTableCell txtD1;
        private XRTableCell txtD10;
        private XRTableCell txtD11;
        private XRTableCell txtD12;
        private XRTableCell txtD13;
        private XRTableCell txtD14;
        private XRTableCell txtD15;
        private XRTableCell txtD16;
        private XRTableCell txtD17;
        private XRTableCell txtD18;
        private XRTableCell txtD19;
        private XRTableCell txtD2;
        private XRTableCell txtD20;
        private XRTableCell txtD21;
        private XRTableCell txtD22;
        private XRTableCell txtD23;
        private XRTableCell txtD24;
        private XRTableCell txtD25;
        private XRTableCell txtD26;
        private XRTableCell txtD27;
        private XRTableCell txtD28;
        private XRTableCell txtD29;
        private XRTableCell txtD3;
        private XRTableCell txtD30;
        private XRTableCell txtD31;
        private XRTableCell txtD4;
        private XRTableCell txtD5;
        private XRTableCell txtD6;
        private XRTableCell txtD7;
        private XRTableCell txtD8;
        private XRTableCell txtD9;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtNightDay;
        private XRTableCell txtOrder;
        private XRTableCell txtRealDay;
        private XRLabel txtTitle;
        private XRTableCell txtTotalAbsentDay;
        private XRTableCell txtTotalNightDay;
        private XRTableCell txtTotalRealDay;
        private XRTableCell txtTotalWorkDay;
        private XRLabel txtUnit;
        private XRTableCell txtWorkTotal;
        private XRLabel xrLabel1;
        private XRLabel xrLabel2;
        private XRLabel xrLabel25;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell26;
        private XRTableCell xrTableCell28;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell30;
        private XRTableCell xrTableCell32;
        private XRTableCell xrTableCell34;
        private XRTableCell xrTableCell38;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell40;
        private XRTableCell xrTableCell42;
        private XRTableCell xrTableCell45;
        private XRTableCell xrTableCell47;
        private XRTableCell xrTableCell49;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell51;
        private XRTableCell xrTableCell53;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell61;
        private XRTableCell xrTableCell73;
        private XRTableCell xrTableCell8;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow5;

        public rptTimekeeperTableStyle2Theme1()
        {
            this.components = null;
            this.l_TimeKeeper = new HRM_TIMEKEEPER_TABLE();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptTimekeeperTableStyle2Theme1(int Level, string Code, int Month, int Year)
        {
            this.components = null;
            this.l_TimeKeeper = new HRM_TIMEKEEPER_TABLE();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Month = Month;
            this.m_Year = Year;
        }

        private string DayName(int Year, int Month, int Day)
        {
            try
            {
                DateTime time = new DateTime(Year, Month, Day);
                return (Day.ToString() + " " + time.DayOfWeek.ToString().Substring(0, 3));
            }
            catch
            {
                return Day.ToString();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.txtD1 = new XRTableCell();
            this.txtD2 = new XRTableCell();
            this.txtD3 = new XRTableCell();
            this.txtD4 = new XRTableCell();
            this.txtD5 = new XRTableCell();
            this.txtD6 = new XRTableCell();
            this.txtD7 = new XRTableCell();
            this.txtD8 = new XRTableCell();
            this.txtD9 = new XRTableCell();
            this.txtD10 = new XRTableCell();
            this.txtD11 = new XRTableCell();
            this.txtD12 = new XRTableCell();
            this.txtD13 = new XRTableCell();
            this.txtD14 = new XRTableCell();
            this.txtD15 = new XRTableCell();
            this.txtD16 = new XRTableCell();
            this.txtD17 = new XRTableCell();
            this.txtD18 = new XRTableCell();
            this.txtD19 = new XRTableCell();
            this.txtD20 = new XRTableCell();
            this.txtD21 = new XRTableCell();
            this.txtD22 = new XRTableCell();
            this.txtD23 = new XRTableCell();
            this.txtD24 = new XRTableCell();
            this.txtD25 = new XRTableCell();
            this.txtD26 = new XRTableCell();
            this.txtD27 = new XRTableCell();
            this.txtD28 = new XRTableCell();
            this.txtD29 = new XRTableCell();
            this.txtD30 = new XRTableCell();
            this.txtD31 = new XRTableCell();
            this.txtRealDay = new XRTableCell();
            this.txtNightDay = new XRTableCell();
            this.txtAbsent = new XRTableCell();
            this.txtWorkTotal = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.xrLabel25 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.txtTitle = new XRLabel();
            this.txtUnit = new XRLabel();
            this.txtAddress = new XRLabel();
            this.ptPhoto = new XRPictureBox();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell25 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell38 = new XRTableCell();
            this.xrTableCell30 = new XRTableCell();
            this.xrTableCell40 = new XRTableCell();
            this.xrTableCell26 = new XRTableCell();
            this.xrTableCell42 = new XRTableCell();
            this.xrTableCell32 = new XRTableCell();
            this.xrTableCell45 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell47 = new XRTableCell();
            this.xrTableCell34 = new XRTableCell();
            this.xrTableCell49 = new XRTableCell();
            this.xrTableCell28 = new XRTableCell();
            this.xrTableCell51 = new XRTableCell();
            this.colD28 = new XRTableCell();
            this.colD29 = new XRTableCell();
            this.colD30 = new XRTableCell();
            this.colD31 = new XRTableCell();
            this.xrTableCell53 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell61 = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.GroupFooter1 = new GroupFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell73 = new XRTableCell();
            this.txtTotalRealDay = new XRTableCell();
            this.txtTotalNightDay = new XRTableCell();
            this.txtTotalAbsentDay = new XRTableCell();
            this.txtTotalWorkDay = new XRTableCell();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 8.25f);
            this.xrTable2.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1129.397f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { 
                this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.txtD1, this.txtD2, this.txtD3, this.txtD4, this.txtD5, this.txtD6, this.txtD7, this.txtD8, this.txtD9, this.txtD10, this.txtD11, this.txtD12, this.txtD13, 
                this.txtD14, this.txtD15, this.txtD16, this.txtD17, this.txtD18, this.txtD19, this.txtD20, this.txtD21, this.txtD22, this.txtD23, this.txtD24, this.txtD25, this.txtD26, this.txtD27, this.txtD28, this.txtD29, 
                this.txtD30, this.txtD31, this.txtRealDay, this.txtNightDay, this.txtAbsent, this.txtWorkTotal
             });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.14829617632213812;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "txtEmployeeCode";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.33387192920277375;
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "[FirstName] [LastName]";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.56281120146003272;
            this.txtD1.Font = new Font("Times New Roman", 6f);
            this.txtD1.Name = "txtD1";
            this.txtD1.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD1.StylePriority.UseFont = false;
            this.txtD1.StylePriority.UsePadding = false;
            this.txtD1.StylePriority.UseTextAlignment = false;
            this.txtD1.Text = "txtD1";
            this.txtD1.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD1.Weight = 0.12358032792263032;
            this.txtD2.Font = new Font("Times New Roman", 6f);
            this.txtD2.Name = "txtD2";
            this.txtD2.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD2.StylePriority.UseFont = false;
            this.txtD2.StylePriority.UsePadding = false;
            this.txtD2.StylePriority.UseTextAlignment = false;
            this.txtD2.Text = "txtD2";
            this.txtD2.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD2.Weight = 0.1235799814438458;
            this.txtD3.Font = new Font("Times New Roman", 6f);
            this.txtD3.Name = "txtD3";
            this.txtD3.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD3.StylePriority.UseFont = false;
            this.txtD3.StylePriority.UsePadding = false;
            this.txtD3.StylePriority.UseTextAlignment = false;
            this.txtD3.Text = "txtD3";
            this.txtD3.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD3.Weight = 0.12358027787271984;
            this.txtD4.Font = new Font("Times New Roman", 6f);
            this.txtD4.Name = "txtD4";
            this.txtD4.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD4.StylePriority.UseFont = false;
            this.txtD4.StylePriority.UsePadding = false;
            this.txtD4.StylePriority.UseTextAlignment = false;
            this.txtD4.Text = "txtD4";
            this.txtD4.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD4.Weight = 0.12358012998151918;
            this.txtD5.Font = new Font("Times New Roman", 6f);
            this.txtD5.Name = "txtD5";
            this.txtD5.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD5.StylePriority.UseFont = false;
            this.txtD5.StylePriority.UsePadding = false;
            this.txtD5.StylePriority.UseTextAlignment = false;
            this.txtD5.Text = "txtD5";
            this.txtD5.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD5.Weight = 0.12358013219593542;
            this.txtD6.Font = new Font("Times New Roman", 6f);
            this.txtD6.Name = "txtD6";
            this.txtD6.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD6.StylePriority.UseFont = false;
            this.txtD6.StylePriority.UsePadding = false;
            this.txtD6.StylePriority.UseTextAlignment = false;
            this.txtD6.Text = "txtD6";
            this.txtD6.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD6.Weight = 0.12358012728903472;
            this.txtD7.Font = new Font("Times New Roman", 6f);
            this.txtD7.Name = "txtD7";
            this.txtD7.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD7.StylePriority.UseFont = false;
            this.txtD7.StylePriority.UsePadding = false;
            this.txtD7.StylePriority.UseTextAlignment = false;
            this.txtD7.Text = "txtD7";
            this.txtD7.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD7.Weight = 0.12358012459126515;
            this.txtD8.Font = new Font("Times New Roman", 6f);
            this.txtD8.Name = "txtD8";
            this.txtD8.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD8.StylePriority.UseFont = false;
            this.txtD8.StylePriority.UsePadding = false;
            this.txtD8.StylePriority.UseTextAlignment = false;
            this.txtD8.Text = "txtD8";
            this.txtD8.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD8.Weight = 0.12358013415950883;
            this.txtD9.Font = new Font("Times New Roman", 6f);
            this.txtD9.Name = "txtD9";
            this.txtD9.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD9.StylePriority.UseFont = false;
            this.txtD9.StylePriority.UsePadding = false;
            this.txtD9.StylePriority.UseTextAlignment = false;
            this.txtD9.Text = "txtD9";
            this.txtD9.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD9.Weight = 0.12357983245023758;
            this.txtD10.Font = new Font("Times New Roman", 6f);
            this.txtD10.Name = "txtD10";
            this.txtD10.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD10.StylePriority.UseFont = false;
            this.txtD10.StylePriority.UsePadding = false;
            this.txtD10.StylePriority.UseTextAlignment = false;
            this.txtD10.Text = "txtD10";
            this.txtD10.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD10.Weight = 0.12358013625670788;
            this.txtD11.Font = new Font("Times New Roman", 6f);
            this.txtD11.Name = "txtD11";
            this.txtD11.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD11.StylePriority.UseFont = false;
            this.txtD11.StylePriority.UsePadding = false;
            this.txtD11.StylePriority.UseTextAlignment = false;
            this.txtD11.Text = "txtD11";
            this.txtD11.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD11.Weight = 0.12358012735117269;
            this.txtD12.Font = new Font("Times New Roman", 6f);
            this.txtD12.Name = "txtD12";
            this.txtD12.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD12.StylePriority.UseFont = false;
            this.txtD12.StylePriority.UsePadding = false;
            this.txtD12.StylePriority.UseTextAlignment = false;
            this.txtD12.Text = "txtD12";
            this.txtD12.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD12.Weight = 0.12358042906047631;
            this.txtD13.Font = new Font("Times New Roman", 6f);
            this.txtD13.Name = "txtD13";
            this.txtD13.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD13.StylePriority.UseFont = false;
            this.txtD13.StylePriority.UsePadding = false;
            this.txtD13.StylePriority.UseTextAlignment = false;
            this.txtD13.Text = "txtD13";
            this.txtD13.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD13.Weight = 0.12358012983139174;
            this.txtD14.Font = new Font("Times New Roman", 6f);
            this.txtD14.Name = "txtD14";
            this.txtD14.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD14.StylePriority.UseFont = false;
            this.txtD14.StylePriority.UsePadding = false;
            this.txtD14.StylePriority.UseTextAlignment = false;
            this.txtD14.Text = "txtD14";
            this.txtD14.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD14.Weight = 0.1235801308665849;
            this.txtD15.Font = new Font("Times New Roman", 6f);
            this.txtD15.Name = "txtD15";
            this.txtD15.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD15.StylePriority.UseFont = false;
            this.txtD15.StylePriority.UsePadding = false;
            this.txtD15.StylePriority.UseTextAlignment = false;
            this.txtD15.Text = "txtD15";
            this.txtD15.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD15.Weight = 0.12358012332980392;
            this.txtD16.Font = new Font("Times New Roman", 6f);
            this.txtD16.Name = "txtD16";
            this.txtD16.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD16.StylePriority.UseFont = false;
            this.txtD16.StylePriority.UsePadding = false;
            this.txtD16.StylePriority.UseTextAlignment = false;
            this.txtD16.Text = "txtD16";
            this.txtD16.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD16.Weight = 0.12358012332980389;
            this.txtD17.Font = new Font("Times New Roman", 6f);
            this.txtD17.Name = "txtD17";
            this.txtD17.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD17.StylePriority.UseFont = false;
            this.txtD17.StylePriority.UsePadding = false;
            this.txtD17.StylePriority.UseTextAlignment = false;
            this.txtD17.Text = "txtD17";
            this.txtD17.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD17.Weight = 0.12358012332980398;
            this.txtD18.Font = new Font("Times New Roman", 6f);
            this.txtD18.Name = "txtD18";
            this.txtD18.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD18.StylePriority.UseFont = false;
            this.txtD18.StylePriority.UsePadding = false;
            this.txtD18.StylePriority.UseTextAlignment = false;
            this.txtD18.Text = "txtD18";
            this.txtD18.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD18.Weight = 0.1235804250391076;
            this.txtD19.Font = new Font("Times New Roman", 6f);
            this.txtD19.Name = "txtD19";
            this.txtD19.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD19.StylePriority.UseFont = false;
            this.txtD19.StylePriority.UsePadding = false;
            this.txtD19.StylePriority.UseTextAlignment = false;
            this.txtD19.Text = "txtD19";
            this.txtD19.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD19.Weight = 0.12357984047733167;
            this.txtD20.Font = new Font("Times New Roman", 6f);
            this.txtD20.Name = "txtD20";
            this.txtD20.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD20.StylePriority.UseFont = false;
            this.txtD20.StylePriority.UsePadding = false;
            this.txtD20.StylePriority.UseTextAlignment = false;
            this.txtD20.Text = "txtD20";
            this.txtD20.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD20.Weight = 0.12358014218663538;
            this.txtD21.Font = new Font("Times New Roman", 6f);
            this.txtD21.Name = "txtD21";
            this.txtD21.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD21.StylePriority.UseFont = false;
            this.txtD21.StylePriority.UsePadding = false;
            this.txtD21.StylePriority.UseTextAlignment = false;
            this.txtD21.Text = "txtD21";
            this.txtD21.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD21.Weight = 0.12358014218663532;
            this.txtD22.Font = new Font("Times New Roman", 6f);
            this.txtD22.Name = "txtD22";
            this.txtD22.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD22.StylePriority.UseFont = false;
            this.txtD22.StylePriority.UsePadding = false;
            this.txtD22.StylePriority.UseTextAlignment = false;
            this.txtD22.Text = "txtD22";
            this.txtD22.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD22.Weight = 0.12358014218663538;
            this.txtD23.Font = new Font("Times New Roman", 6f);
            this.txtD23.Name = "txtD23";
            this.txtD23.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD23.StylePriority.UseFont = false;
            this.txtD23.StylePriority.UsePadding = false;
            this.txtD23.StylePriority.UseTextAlignment = false;
            this.txtD23.Text = "txtD23";
            this.txtD23.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD23.Weight = 0.12358014218663532;
            this.txtD24.Font = new Font("Times New Roman", 6f);
            this.txtD24.Name = "txtD24";
            this.txtD24.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD24.StylePriority.UseFont = false;
            this.txtD24.StylePriority.UsePadding = false;
            this.txtD24.StylePriority.UseTextAlignment = false;
            this.txtD24.Text = "txtD24";
            this.txtD24.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD24.Weight = 0.12358014218663538;
            this.txtD25.Font = new Font("Times New Roman", 6f);
            this.txtD25.Name = "txtD25";
            this.txtD25.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD25.StylePriority.UseFont = false;
            this.txtD25.StylePriority.UsePadding = false;
            this.txtD25.StylePriority.UseTextAlignment = false;
            this.txtD25.Text = "txtD25";
            this.txtD25.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD25.Weight = 0.12357984047733167;
            this.txtD26.Font = new Font("Times New Roman", 6f);
            this.txtD26.Name = "txtD26";
            this.txtD26.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD26.StylePriority.UseFont = false;
            this.txtD26.StylePriority.UsePadding = false;
            this.txtD26.StylePriority.UseTextAlignment = false;
            this.txtD26.Text = "txtD26";
            this.txtD26.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD26.Weight = 0.12358044389593914;
            this.txtD27.Font = new Font("Times New Roman", 6f);
            this.txtD27.Name = "txtD27";
            this.txtD27.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD27.StylePriority.UseFont = false;
            this.txtD27.StylePriority.UsePadding = false;
            this.txtD27.StylePriority.UseTextAlignment = false;
            this.txtD27.Text = "txtD27";
            this.txtD27.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD27.Weight = 0.12358014218663538;
            this.txtD28.Font = new Font("Times New Roman", 6f);
            this.txtD28.Name = "txtD28";
            this.txtD28.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD28.StylePriority.UseFont = false;
            this.txtD28.StylePriority.UsePadding = false;
            this.txtD28.StylePriority.UseTextAlignment = false;
            this.txtD28.Text = "txtD28";
            this.txtD28.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD28.Weight = 0.12357984047733162;
            this.txtD29.Font = new Font("Times New Roman", 6f);
            this.txtD29.Name = "txtD29";
            this.txtD29.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD29.StylePriority.UseFont = false;
            this.txtD29.StylePriority.UsePadding = false;
            this.txtD29.StylePriority.UseTextAlignment = false;
            this.txtD29.Text = "txtD29";
            this.txtD29.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD29.Weight = 0.12358043535428187;
            this.txtD30.Font = new Font("Times New Roman", 6f);
            this.txtD30.Name = "txtD30";
            this.txtD30.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD30.StylePriority.UseFont = false;
            this.txtD30.StylePriority.UsePadding = false;
            this.txtD30.StylePriority.UseTextAlignment = false;
            this.txtD30.Text = "txtD30";
            this.txtD30.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD30.Weight = 0.12358073706358563;
            this.txtD31.Font = new Font("Times New Roman", 6f);
            this.txtD31.Name = "txtD31";
            this.txtD31.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtD31.StylePriority.UseFont = false;
            this.txtD31.StylePriority.UsePadding = false;
            this.txtD31.StylePriority.UseTextAlignment = false;
            this.txtD31.Text = "txtD31";
            this.txtD31.TextAlignment = TextAlignment.MiddleCenter;
            this.txtD31.Weight = 0.12357920966023564;
            this.txtRealDay.Name = "txtRealDay";
            this.txtRealDay.StylePriority.UseTextAlignment = false;
            this.txtRealDay.Text = "txtRealDay";
            this.txtRealDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtRealDay.Weight = 0.17795539119599221;
            this.txtNightDay.Name = "txtNightDay";
            this.txtNightDay.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtNightDay.StylePriority.UsePadding = false;
            this.txtNightDay.StylePriority.UseTextAlignment = false;
            this.txtNightDay.Text = "txtNightDay";
            this.txtNightDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtNightDay.Weight = 0.17795538626435903;
            this.txtAbsent.Font = new Font("Times New Roman", 8.25f);
            this.txtAbsent.Name = "txtAbsent";
            this.txtAbsent.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAbsent.StylePriority.UseFont = false;
            this.txtAbsent.StylePriority.UsePadding = false;
            this.txtAbsent.StylePriority.UseTextAlignment = false;
            this.txtAbsent.Text = "txtAbsent";
            this.txtAbsent.TextAlignment = TextAlignment.MiddleCenter;
            this.txtAbsent.Weight = 0.17795478119618816;
            this.txtWorkTotal.Name = "txtWorkTotal";
            this.txtWorkTotal.StylePriority.UseTextAlignment = false;
            this.txtWorkTotal.Text = "txtWorkTotal";
            this.txtWorkTotal.TextAlignment = TextAlignment.MiddleCenter;
            this.txtWorkTotal.Weight = 0.1730127450878296;
            this.TopMargin.HeightF = 40f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 40f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.xrLabel25, this.xrLabel1, this.txtTitle, this.txtUnit, this.txtAddress, this.ptPhoto, this.txtCompany, this.xrLabel2 });
            this.ReportHeader.HeightF = 121f;
            this.ReportHeader.Name = "ReportHeader";
            this.xrLabel25.LocationFloat = new PointFloat(886.5902f, 27.70834f);
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel25.SizeF = new SizeF(243.4097f, 40.04164f);
            this.xrLabel25.StylePriority.UseTextAlignment = false;
            this.xrLabel25.Text = "(Ban h\x00e0nh theo QĐ số: 48/2006/QĐ-BTC ng\x00e0y 14/09/2006 của Bộ trưởng BTC)";
            this.xrLabel25.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel25.Visible = false;
            this.xrLabel1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel1.LocationFloat = new PointFloat(886.5902f, 9.708341f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(243.4097f, 17.70833f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.StylePriority.UseTextAlignment = false;
            this.xrLabel1.Text = "Mẩu số: 01a-LĐTL";
            this.xrLabel1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel1.Visible = false;
            this.txtTitle.Font = new Font("Times New Roman", 14f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1130f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "BẢNG CHẤM C\x00d4NG TH\x00c1NG 00/0000";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.Font = new Font("Times New Roman", 9.75f);
            this.txtUnit.LocationFloat = new PointFloat(0f, 99.00001f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(1130f, 17.70834f);
            this.txtUnit.StylePriority.UseFont = false;
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleCenter;
            this.txtAddress.Font = new Font("Times New Roman", 9.75f);
            this.txtAddress.LocationFloat = new PointFloat(161.5417f, 31.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(490.5415f, 17.70833f);
            this.txtAddress.StylePriority.UseFont = false;
            this.txtAddress.Text = "txtAddress";
            this.ptPhoto.LocationFloat = new PointFloat(9.000008f, 3.999987f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 63.75001f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(105.5417f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(546.5415f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f);
            this.xrLabel2.LocationFloat = new PointFloat(105.5417f, 31.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(56f, 17.70833f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.Text = "Địa Chỉ:";
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader1.HeightF = 34.16665f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.BackColor = Color.WhiteSmoke;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1129.397f, 34.16665f);
            this.xrTable1.StylePriority.UseBackColor = false;
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { 
                this.xrTableCell1, this.xrTableCell14, this.xrTableCell13, this.xrTableCell3, this.xrTableCell4, this.xrTableCell6, this.xrTableCell18, this.xrTableCell15, this.xrTableCell5, this.xrTableCell16, this.xrTableCell23, this.xrTableCell21, this.xrTableCell24, this.xrTableCell25, this.xrTableCell20, this.xrTableCell19, 
                this.xrTableCell22, this.xrTableCell38, this.xrTableCell30, this.xrTableCell40, this.xrTableCell26, this.xrTableCell42, this.xrTableCell32, this.xrTableCell45, this.xrTableCell8, this.xrTableCell47, this.xrTableCell34, this.xrTableCell49, this.xrTableCell28, this.xrTableCell51, this.colD28, this.colD29, 
                this.colD30, this.colD31, this.xrTableCell53, this.xrTableCell2, this.xrTableCell17, this.xrTableCell61
             });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell1.Weight = 0.14829615720307571;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.StylePriority.UseFont = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "M\x00e3 nh\x00e2n vi\x00ean";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell14.Weight = 0.33387204633644046;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "Họ t\x00ean";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.562811118463108;
            this.xrTableCell3.CanGrow = false;
            this.xrTableCell3.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.StylePriority.UseFont = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "1";
            this.xrTableCell3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell3.Weight = 0.12358015625988601;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "2";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.1235801593004211;
            this.xrTableCell6.CanGrow = false;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.Text = "3";
            this.xrTableCell6.Weight = 0.12358015816100054;
            this.xrTableCell18.CanGrow = false;
            this.xrTableCell18.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "4";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.12358016462596351;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Text = "5";
            this.xrTableCell15.Weight = 0.12358016295710758;
            this.xrTableCell5.CanGrow = false;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Text = "6";
            this.xrTableCell5.Weight = 0.12358016401666089;
            this.xrTableCell16.CanGrow = false;
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Text = "7";
            this.xrTableCell16.Weight = 0.12358016401665284;
            this.xrTableCell23.CanGrow = false;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Text = "8";
            this.xrTableCell23.Weight = 0.12358016007767822;
            this.xrTableCell21.CanGrow = false;
            this.xrTableCell21.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseFont = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "9";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell21.Weight = 0.12358016007767847;
            this.xrTableCell24.CanGrow = false;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.Text = "10";
            this.xrTableCell24.Weight = 0.12358016390254598;
            this.xrTableCell25.CanGrow = false;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Text = "11";
            this.xrTableCell25.Weight = 0.12358016043676609;
            this.xrTableCell20.CanGrow = false;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.Text = "12";
            this.xrTableCell20.Weight = 0.12358016043676516;
            this.xrTableCell19.CanGrow = false;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Text = "13";
            this.xrTableCell19.Weight = 0.12358016473483201;
            this.xrTableCell22.CanGrow = false;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.Text = "14";
            this.xrTableCell22.Weight = 0.12358016178342469;
            this.xrTableCell38.CanGrow = false;
            this.xrTableCell38.Name = "xrTableCell38";
            this.xrTableCell38.Text = "15";
            this.xrTableCell38.Weight = 0.12358016339327851;
            this.xrTableCell30.CanGrow = false;
            this.xrTableCell30.Name = "xrTableCell30";
            this.xrTableCell30.Text = "16";
            this.xrTableCell30.Weight = 0.12358016339327849;
            this.xrTableCell40.CanGrow = false;
            this.xrTableCell40.Name = "xrTableCell40";
            this.xrTableCell40.Text = "17";
            this.xrTableCell40.Weight = 0.12358016339327851;
            this.xrTableCell26.CanGrow = false;
            this.xrTableCell26.Name = "xrTableCell26";
            this.xrTableCell26.Text = "18";
            this.xrTableCell26.Weight = 0.12358016339327853;
            this.xrTableCell42.CanGrow = false;
            this.xrTableCell42.Name = "xrTableCell42";
            this.xrTableCell42.Text = "19";
            this.xrTableCell42.Weight = 0.12358016339327854;
            this.xrTableCell32.CanGrow = false;
            this.xrTableCell32.Name = "xrTableCell32";
            this.xrTableCell32.Text = "20";
            this.xrTableCell32.Weight = 0.12358016339327853;
            this.xrTableCell45.CanGrow = false;
            this.xrTableCell45.Name = "xrTableCell45";
            this.xrTableCell45.Text = "21";
            this.xrTableCell45.Weight = 0.12358016339327851;
            this.xrTableCell8.CanGrow = false;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Text = "22";
            this.xrTableCell8.Weight = 0.12358016339327853;
            this.xrTableCell47.CanGrow = false;
            this.xrTableCell47.Name = "xrTableCell47";
            this.xrTableCell47.Text = "23";
            this.xrTableCell47.Weight = 0.12358016339327854;
            this.xrTableCell34.CanGrow = false;
            this.xrTableCell34.Name = "xrTableCell34";
            this.xrTableCell34.Text = "24";
            this.xrTableCell34.Weight = 0.12358016339327853;
            this.xrTableCell49.CanGrow = false;
            this.xrTableCell49.Name = "xrTableCell49";
            this.xrTableCell49.Text = "25";
            this.xrTableCell49.Weight = 0.12358016339327851;
            this.xrTableCell28.CanGrow = false;
            this.xrTableCell28.Name = "xrTableCell28";
            this.xrTableCell28.Text = "26";
            this.xrTableCell28.Weight = 0.12358016339327851;
            this.xrTableCell51.CanGrow = false;
            this.xrTableCell51.Name = "xrTableCell51";
            this.xrTableCell51.Text = "27";
            this.xrTableCell51.Weight = 0.12358016339327854;
            this.colD28.CanGrow = false;
            this.colD28.Name = "colD28";
            this.colD28.Text = "28";
            this.colD28.Weight = 0.12358016339327854;
            this.colD29.CanGrow = false;
            this.colD29.Name = "colD29";
            this.colD29.Text = "29";
            this.colD29.Weight = 0.12358015663202992;
            this.colD30.CanGrow = false;
            this.colD30.Name = "colD30";
            this.colD30.Text = "30";
            this.colD30.Weight = 0.12358015663202988;
            this.colD31.CanGrow = false;
            this.colD31.Name = "colD31";
            this.colD31.Text = "31";
            this.colD31.Weight = 0.12358015663202986;
            this.xrTableCell53.CanGrow = false;
            this.xrTableCell53.Font = new Font("Times New Roman", 7.25f, FontStyle.Bold);
            this.xrTableCell53.Name = "xrTableCell53";
            this.xrTableCell53.StylePriority.UseFont = false;
            this.xrTableCell53.Text = "Ng\x00e0y l\x00e0m";
            this.xrTableCell53.Weight = 0.17795543352940557;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "Trực đ\x00eam";
            this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell2.Weight = 0.177955428983043;
            this.xrTableCell17.CanGrow = false;
            this.xrTableCell17.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseFont = false;
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "Ng\x00e0y nghỉ";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.17795542235718409;
            this.xrTableCell61.CanGrow = false;
            this.xrTableCell61.Font = new Font("Times New Roman", 7.75f, FontStyle.Bold);
            this.xrTableCell61.Name = "xrTableCell61";
            this.xrTableCell61.StylePriority.UseFont = false;
            this.xrTableCell61.Text = "Tổng c\x00f4ng";
            this.xrTableCell61.Weight = 0.17301235820590638;
            this.ReportFooter.HeightF = 14f;
            this.ReportFooter.Name = "ReportFooter";
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.xrTable4 });
            this.GroupFooter1.HeightF = 29.16667f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.xrTable4.BackColor = Color.WhiteSmoke;
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.Font = new Font("Times New Roman", 8.25f);
            this.xrTable4.LocationFloat = new PointFloat(1.00008f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable4.SizeF = new SizeF(1129f, 29.16667f);
            this.xrTable4.StylePriority.UseBackColor = false;
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTable4.StylePriority.UseFont = false;
            this.xrTable4.StylePriority.UsePadding = false;
            this.xrTable4.StylePriority.UseTextAlignment = false;
            this.xrTable4.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell73, this.txtTotalRealDay, this.txtTotalNightDay, this.txtTotalAbsentDay, this.txtTotalWorkDay });
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell73.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell73.Name = "xrTableCell73";
            this.xrTableCell73.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.xrTableCell73.StylePriority.UseFont = false;
            this.xrTableCell73.StylePriority.UsePadding = false;
            this.xrTableCell73.StylePriority.UseTextAlignment = false;
            this.xrTableCell73.Text = "Tổng cộng";
            this.xrTableCell73.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell73.Weight = 4.8753004876969008;
            this.txtTotalRealDay.Name = "txtTotalRealDay";
            this.txtTotalRealDay.StylePriority.UseTextAlignment = false;
            this.txtTotalRealDay.Text = "txtTotalRealDay";
            this.txtTotalRealDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalRealDay.Weight = 0.17811207294017578;
            this.txtTotalNightDay.Name = "txtTotalNightDay";
            this.txtTotalNightDay.Text = "txtTotalNightDay";
            this.txtTotalNightDay.Weight = 0.17811237003469257;
            this.txtTotalAbsentDay.Font = new Font("Times New Roman", 8.25f);
            this.txtTotalAbsentDay.Name = "txtTotalAbsentDay";
            this.txtTotalAbsentDay.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalAbsentDay.StylePriority.UseFont = false;
            this.txtTotalAbsentDay.StylePriority.UsePadding = false;
            this.txtTotalAbsentDay.StylePriority.UseTextAlignment = false;
            this.txtTotalAbsentDay.Text = "txtTotalAbsentDay";
            this.txtTotalAbsentDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalAbsentDay.Weight = 0.17811035457412425;
            this.txtTotalWorkDay.Name = "txtTotalWorkDay";
            this.txtTotalWorkDay.StylePriority.UseTextAlignment = false;
            this.txtTotalWorkDay.Text = "txtTotalWorkDay";
            this.txtTotalWorkDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalWorkDay.Weight = 0.17614632502488106;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter, this.GroupFooter1 });
            base.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            base.Landscape = true;
            base.Margins = new Margins(0x18, 15, 40, 40);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private void InitInterface()
        {
            int numberDay = DateTime.DaysInMonth(this.m_Year, this.m_Month);
            this.ShowHideColumn(numberDay);
            for (int i = 1; i <= numberDay; i++)
            {
                Color white = Color.White;
                DateTime date = new DateTime(this.m_Year, this.m_Month, i);
                clsTimeKeeperOption option = new clsTimeKeeperOption();
                if (date.DayOfWeek.ToString() == "Monday")
                {
                    white = option.MondayColor;
                }
                else if (date.DayOfWeek.ToString() == "Tuesday")
                {
                    white = option.TuesdayColor;
                }
                else if (date.DayOfWeek.ToString() == "Wednesday")
                {
                    white = option.WednesdayColor;
                }
                else if (date.DayOfWeek.ToString() == "Thursday")
                {
                    white = option.ThursdayColor;
                }
                else if (date.DayOfWeek.ToString() == "Friday")
                {
                    white = option.FridayColor;
                }
                else if (date.DayOfWeek.ToString() == "Saturday")
                {
                    white = option.SaturdayColor;
                }
                else if (date.DayOfWeek.ToString() == "Sunday")
                {
                    white = option.SundayColor;
                }
                DIC_HOLIDAY dic_holiday = new DIC_HOLIDAY();
                if (dic_holiday.Exist(date))
                {
                    white = option.HolidayColor;
                }
                this.xrTableRow2.Cells[i + 2].BackColor = white;
                this.xrTableRow1.Cells[i + 2].Text = this.DayName(this.m_Year, this.m_Month, i);
            }
        }

        private void LoadAllData()
        {
            this.InitInterface();
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            hrm_timekeeper_tablelist.Get(this.m_Month, this.m_Year);
            DataSet set = new DataSet();
            DataTable table = this.l_TimeKeeper.GetList1(this.m_Level, this.m_Code, hrm_timekeeper_tablelist.TimeKeeperTableListID);
            if (this.m_Level != 0)
            {
                if (this.m_Level == 1)
                {
                    HRM_BRANCH hrm_branch = new HRM_BRANCH();
                    hrm_branch.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_branch.BranchName;
                }
                else if (this.m_Level == 2)
                {
                    HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                    hrm_department.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_department.DepartmentName;
                }
                else if (this.m_Level == 3)
                {
                    HRM_GROUP hrm_group = new HRM_GROUP();
                    hrm_group.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_group.GroupName;
                }
            }
            set.Tables.Add(table);
            base.DataSource = set;
            base.DataMember = table.TableName;
            base.DataAdapter = table;
            this.txtEmployeeCode.DataBindings.Add("Text", base.DataSource, "EmployeeCode");
            this.txtD1.DataBindings.Add("Text", base.DataSource, "D1");
            this.txtD2.DataBindings.Add("Text", base.DataSource, "D2");
            this.txtD3.DataBindings.Add("Text", base.DataSource, "D3");
            this.txtD4.DataBindings.Add("Text", base.DataSource, "D4");
            this.txtD5.DataBindings.Add("Text", base.DataSource, "D5");
            this.txtD6.DataBindings.Add("Text", base.DataSource, "D6");
            this.txtD7.DataBindings.Add("Text", base.DataSource, "D7");
            this.txtD8.DataBindings.Add("Text", base.DataSource, "D8");
            this.txtD9.DataBindings.Add("Text", base.DataSource, "D9");
            this.txtD10.DataBindings.Add("Text", base.DataSource, "D10");
            this.txtD11.DataBindings.Add("Text", base.DataSource, "D11");
            this.txtD12.DataBindings.Add("Text", base.DataSource, "D12");
            this.txtD13.DataBindings.Add("Text", base.DataSource, "D13");
            this.txtD14.DataBindings.Add("Text", base.DataSource, "D14");
            this.txtD15.DataBindings.Add("Text", base.DataSource, "D15");
            this.txtD16.DataBindings.Add("Text", base.DataSource, "D16");
            this.txtD17.DataBindings.Add("Text", base.DataSource, "D17");
            this.txtD18.DataBindings.Add("Text", base.DataSource, "D18");
            this.txtD19.DataBindings.Add("Text", base.DataSource, "D19");
            this.txtD20.DataBindings.Add("Text", base.DataSource, "D20");
            this.txtD21.DataBindings.Add("Text", base.DataSource, "D21");
            this.txtD22.DataBindings.Add("Text", base.DataSource, "D22");
            this.txtD23.DataBindings.Add("Text", base.DataSource, "D23");
            this.txtD24.DataBindings.Add("Text", base.DataSource, "D24");
            this.txtD25.DataBindings.Add("Text", base.DataSource, "D25");
            this.txtD26.DataBindings.Add("Text", base.DataSource, "D26");
            this.txtD27.DataBindings.Add("Text", base.DataSource, "D27");
            this.txtD28.DataBindings.Add("Text", base.DataSource, "D28");
            this.txtD29.DataBindings.Add("Text", base.DataSource, "D29");
            this.txtD30.DataBindings.Add("Text", base.DataSource, "D30");
            this.txtD31.DataBindings.Add("Text", base.DataSource, "D31");
            this.txtRealDay.DataBindings.Add("Text", base.DataSource, "RealDay");
            this.txtNightDay.DataBindings.Add("Text", base.DataSource, "NightDutyDay");
            this.txtWorkTotal.DataBindings.Add("Text", base.DataSource, "WorkTotal");
            this.txtAbsent.DataBindings.Add("Text", base.DataSource, "Absent");
            this.txtTotalRealDay.DataBindings.Add("Text", base.DataSource, "RealDay", "{0:##,##0}");
            this.txtTotalNightDay.DataBindings.Add("Text", base.DataSource, "NightDutyDay", "{0:##,##0}");
            this.txtTotalWorkDay.DataBindings.Add("Text", base.DataSource, "WorkTotal", "{0:##,##0}");
            this.txtTotalAbsentDay.DataBindings.Add("Text", base.DataSource, "Absent", "{0:##,##0}");
            this.txtTotalRealDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalNightDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalWorkDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalAbsentDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.txtTitle.Text = "BẢNG CHẤM C\x00d4NG TH\x00c1NG " + this.m_Month.ToString() + "/" + this.m_Year.ToString();
            this.LoadAllData();
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
            DIC_SYMBOL.CreateReport(this, this.ReportFooter, true, true);
            CreateFooterReport.CreateFooter("IsTimekeeper", this.ReportFooter, this);
        }

        private void ShowHideColumn(int NumberDay)
        {
            switch (NumberDay)
            {
                case 0x1c:
                    this.xrTableRow1.Cells.Remove(this.colD31);
                    this.xrTableRow2.Cells.Remove(this.txtD31);
                    this.xrTableRow1.Cells.Remove(this.colD30);
                    this.xrTableRow2.Cells.Remove(this.txtD30);
                    this.xrTableRow1.Cells.Remove(this.colD29);
                    this.xrTableRow2.Cells.Remove(this.txtD29);
                    break;

                case 0x1d:
                    this.xrTableRow1.Cells.Remove(this.colD31);
                    this.xrTableRow2.Cells.Remove(this.txtD31);
                    this.xrTableRow1.Cells.Remove(this.colD30);
                    this.xrTableRow2.Cells.Remove(this.txtD30);
                    break;

                case 30:
                    this.xrTableRow1.Cells.Remove(this.colD31);
                    this.xrTableRow2.Cells.Remove(this.txtD31);
                    break;
            }
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

